# 安装ssh/docker/podman/nginx
sudo yum install -y openssh openssh-server openssh-clients nginx

# sudo yum install -y podman-docker
# sudo systemctl start podman
# 1panel 还不支持podman。目前还是docker更稳定
sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io
sudo systemctl start docker
sudo systemctl enable docker
#不使用Sudo执行Docker命令
sudo usermod -aG docker $(whoami)

# 安装1pannel服务器管理软件,需要root权限和安装docker/podman
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo sh quick_start.sh

# 启动1pannel
sudo systemctl start podman
sudo 1panel

# 进程守护
sudo yum install -y epel-release
sudo yum install -y supervisor
sudo systemctl start supervisord
sudo systemctl enable supervisord